﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Purchases
{
    /// <summary>
    /// 添加订单行信息
    /// </summary>
    public class CreateOrderBankCommand : IRequest<Result>
    {
        /// <summary>
        /// 行号
        /// </summary>
        public int OrderBankId { get; set; }
        /// <summary>
        /// 物料管理ID(外键)
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Unitprice { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 单位(外键)
        /// </summary>
        public int UnitId { get; set; }

        /// <summary>
        /// 行金额 
        /// </summary>
        public decimal BankAmount { get; set; }

        /// <summary>
        /// 行摘要
        /// </summary>
        public string Abstract { get; set; }

        /// <summary>
        /// 订单编码(外键 采购/委外)
        /// </summary>
        public string PurchaseNumber { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
